]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Remove gap between windows when switching workspaces
authorHashem Nasarat <hnasarat@gmail.com>
Tue, 29 Jan 2013 00:46:29 +0000 (19:46 -0500)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 17 Feb 2013 20:05:55 +0000 (21:05 +0100)
Previously there was a distracting gap between workspaces with two full-screen
applications.

https://bugzilla.gnome.org/show_bug.cgi?id=685849

js/ui/windowManager.js

index 1b6ccad35a96e51afe281b3c55214324818f0b78..c36ff47634891103b7a563ca4eb6d5e8a159f2cc 100644 (file)
@@ -530,11 +530,11 @@ const WindowManager = new Lang.Class({
         if (direction == Meta.MotionDirection.UP ||
             direction == Meta.MotionDirection.UP_LEFT ||
             direction == Meta.MotionDirection.UP_RIGHT)
-                yDest = global.screen_height;
+                yDest = global.screen_height - Main.panel.actor.height;
         else if (direction == Meta.MotionDirection.DOWN ||
             direction == Meta.MotionDirection.DOWN_LEFT ||
             direction == Meta.MotionDirection.DOWN_RIGHT)
-                yDest = -global.screen_height;
+                yDest = -global.screen_height + Main.panel.actor.height;
 
         if (direction == Meta.MotionDirection.LEFT ||
             direction == Meta.MotionDirection.UP_LEFT ||